<include file="./Tpl/Home/Header.html"/>
<script type="text/javascript" charset="utf-8" async="" src="__PUBLIC__/factory/crmqq.php"></script><script type="text/javascript" charset="utf-8" async="" src="__PUBLIC__/factory/contains.js"></script><script type="text/javascript" charset="utf-8" async="" src="__PUBLIC__/factory/localStorage.js"></script><script type="text/javascript" charset="utf-8" async="" src="__PUBLIC__/factory/Panel.js"></script>
<script type="text/javascript" charset="utf-8" async="" src="__PUBLIC__/factory/alert.js"></script>

<link href="__PUBLIC__/factory/coincommon_v1.css" rel="stylesheet" type="text/css" media="screen, projection">
<link href="__PUBLIC__/factory/jquery-ui-1.10.4.custom.min.css" rel="stylesheet" type="text/css" media="screen, projection">
<style type="text/css">
.buttonGreen2 {
	background: none repeat scroll 0 0 #068814;
	color: #FFFFFF;
	display: inline-block;
	font-size: 14px;
	font-weight: 700;
	height: 32px;
	line-height: 32px;
	margin-top: 5px;
	margin-bottom: 5px;
	text-align: center;
	width: 100px;
}
.buttonGray2 {
	background: none repeat scroll 0 0 gray;
	color: #FFFFFF;
	display: inline-block;
	font-size: 14px;
	font-weight: 700;
	height: 32px;
	line-height: 32px;
	margin-top: 5px;
	margin-bottom: 5px;
	text-align: center;
	width: 120px;
}
.buybtc-subscription {
	float: left;
	height: 200px;
	width: 777px;
}
.buybtc-subscription2 {
	float: left;
	height: 300px;
	width: 777px;
}
.buybtcbody-subscription {
	height: 242px;
}
.finger_img {
	margin-bottom: 35px;
	margin-left: 278px;
	margin-top: -450px;
}
.finger_img1 {
	margin-bottom: 28px;
	margin-left: 13px;
	margin-top: -521px;
}
td {
	text-align: center;
}
.lasttenorder table td {
	border-top: 0px solid #e4e4e4;
	height: 30px;
}
.buysellinput-2 {
	border: 1px solid #e1e1e1;
	height: 20px;
	line-height: 30px;
	width: 30px;
}
.wakuang,.shouyi{width: 150px;
height: 30px;
line-height: 30px;
font-size: 14px;
font-weight: 700;
background: #FF8C19;
height: 35px;
line-hright: 35px;
padding-left: 10px;
border-radius:5px;
 margin:20px;}
.STYLE1 {font-weight: bold}
.STYLE2 {color: #FF0000}
</style>

<div class="marketArea clear"> 	<include file="./Tpl/Home/Left.html"/>

  <div class="rightArea">
    <div class="buysellTitle">
      <div class="selecttab1">
        <ul class="selecttab-box1">
          <li class=""> <a href="?s=Home/Factory/index" class="otherBoxTitle">矿机工厂</a> </li>
          <li class="cur"> <a href="?s=Home/Factory/wakuang" class="otherBoxTitle">挖矿中心</a> </li>
          <li class=""> <a href="?s=Home/Factory/paihangbang" class="otherBoxTitle">排行榜</a> </li>
        </ul>
        <input type="hidden" value="0" id="playSymobl">
      </div>
    </div>
    <div class="STYLE1">
		<span style="font-size:14px">您的总算力：<span class="STYLE2">{$suanli}</span></span><span style="margin-left:20px;font-size:14px">当前在线总算力:<span class="STYLE2">{$allsuanli}</span>当日预期收益:<span class="STYLE2">{$yuqishouyi}</span></span>	</div>
	<div class="Tentitle"> <span class="lightblue4"><strong> 今日矿工预产量：<font color="red">{$config.oneDayNum}</font>个,矿池累计产出{$sys.kgname}总量：<font color="red">{$sum}</font>个 </strong></span> </div>

    
    <div class="rightArea3">
      	<input class="wakuang" type="button" value="开始挖矿" onclick="wakuang()" /><input class="shouyi" type="button"onclick="shouhuo()" value="获取收益" />
    </div>
	
    <div style="margin-top: 3px;" class="endivustTen lasttenorder">
      <div class="Tentitle"> <span class="lightblue4">挖矿记录</span> </div>
      <div class="coinBoxBody">
        <table width="100%">
          <tbody>
          <div>
            <th width="120">NO</th>
            <th width="120">挖矿时间</th>
            <th width="120">收币数量</th>
          </div>
         </tbody>
        	<foreach name="shouhuo" item="v">
            	<tr>
                	<td>{$v.id}</td>
                    <td>{$v.time}天</td>
                    <td>{$v.num}</td>
                </tr>
            </foreach>  
        </table>
      </div>
      <div class="page">
        <ul>
        </ul>
      </div>
    </div>
  </div>
</div>
<include file="./Tpl/Home/Footer.html"/>
<script type="text/javascript">
	function wakuang(){
		$.post("__APP__/?s=Home/Factory/dowakuang",'1',function(data){
			msgDalog(data.info,"",0);
		});
	}
	function shouhuo(){
		$.post("__APP__/?s=Home/Factory/shouhuo",'1',function(data){
			msgDalog(data.info,"",0);
		});
		}
    //显示当前类别样式
    $('#left_main_trance').removeClass().addClass('tradeTitlecur');//一级
    $('#left_main_trance span').removeClass().addClass('trade1cur');
    $('#left_factory').addClass('cur');//二级
</script> 
